package com.example.shop.service;

import com.example.shop.model.User;
import com.example.shop.utils.PageBean;
import org.springframework.stereotype.Service;

@Service
public interface UserService {
    User login(User user);
    int register(User user);
    int updateInfo(User user);
    int setUserHeadPic(User user);

    PageBean<User> getUsers(Integer pageNo, Integer pageSize, String search);
    int deleteUser(Integer id);
    int insertUser(User user);
    int updateUser(User user);
}
